<?php
/* @var $this SmsordersController */
/* @var $model Smsorders */

$this->breadcrumbs=array(
	'Smsorders'=>array('index'),
	'Manage',
); 
 
?> 

<h1>短信充值记录 </h1>  

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'smsorders-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'enableHistory'=>true,
    'template'=>"{items}{summary}{pager}",
    'summaryText'=>'每页显示10条,共{count}条',
    'summaryCssClass'=>'summaryinfo',
    'emptyText'=>'没有数据',
    'itemsCssClass'=>'itemsinfo',
    'pager'=>array(
        'class'=>'CLinkPager',
        'header'=>'',
        'nextPageLabel'=>'下一页',
        'prevPageLabel'=>'上一页',
        'firstPageLabel'=>'首页',
        'lastPageLabel'=>'尾页', 
        ),
	'columns'=>array(
		array(  
            'header' => '序号',  
            'value' => '$this->grid->dataProvider->getPagination()->getOffset()+($row+1)', //CDataColumn $this->grid  
            'htmlOptions' => array(  
                'width' => '40px',  
                "style"=> 'text-align:center',
            ),  
        ),  
        array(
            'name'=>'orderno',
            'value'=>'$data->orderno', 
             'htmlOptions' => array(  
                'width' => '80px',  
                "style"=> 'text-align:center',
            ),  
        ),   
		// array(
  //           'name'=>'totalfee',
  //           'value'=>'$data->totalfee."元"', 
  //       ),   
		//'subject',
         array(
            'name'=>'status',
            'value'=>'$data->status', 
             'htmlOptions' => array(  
                'width' => '60px',  
                "style"=> 'text-align:center',
            ),  
        ),    

		'orderbody',  
		// 'smscount',
		array(
            'name'=>'createtime',
            'value'=>'date("Y-m-d H:i",strtotime($data->createtime));', 
             'htmlOptions' => array(  
                'width' => '100px',  
                "style"=> 'text-align:center',
            ),  
        ),  
		array(
			'class'=>'CButtonColumn',
			'header' => '操作', //指明头信息  
			'template'=> '{view}',  
            'buttons' =>array(      
                 'view' => array(    
                    'label'=>'显示',    
                    'imageUrl'=>Yii::app()->request->baseUrl.'/images/admin/caz.png',   
                ),  
            ),  
		),
	),
)); ?>
